<div class="modal-header">
    <h3 class="modal-title">{{alert.title}}</h3>
</div>
<div class="modal-body">
    <div class="form-group pull-in clearfix">
        <div class="col-sm-6">
            <label>字段名</label>
            <input type="text" class="form-control" ng-model="editDialog.filedId" />
        </div>
        <div class="col-sm-6">
            <label>字段描述</label>
            <input type="text" class="form-control" ng-model="editDialog.filedName" />
        </div>
    </div>
    <div class="form-group pull-in clearfix">
        <div class="col-sm-6">
            <label>字段长度</label>
            <input type="text" class="form-control" ng-model="editDialog.filedLength" />
        </div>
        <div class="col-sm-6">
            <label>是否必填</label>
            <select ng-model="editDialog.required" class="form-control">
                <option value="">==请选择==</option>
                <option value="true">是</option>
                <option value="false">否</option>
            </select>
        </div>
    </div>
    <div class="form-group pull-in clearfix">
        <div class="col-sm-6">
            <label>Java字段类型</label>
            <div  >
                <input ng-model="editDialog.javaType" class="form-control"  type="text"  ng-focus="showSelect(false)"  ng-mouseout="showSelect(true)" ng-click="showSelect(false)" />
                <select multiple ng-model="editTempDialog.javaSelectType" class="form-control" ng-dblclick="setJavaType()" ng-mouseover="showSelect(false)" ng-mouseout="showSelect(true)"  ng-hide="editTempDialog.isHidden" >
                    <option value="">==请选择==</option>
                    <option value="Integer">整数</option>
                    <option value="Long">长整数</option>
                    <option value="Double">小数</option>
                    <option value="String">字符串</option>
                    <option value="Date">日期</option>
                    <option value="Boolean">布尔型</option>
                </select>
            </div>

        </div>
        <div class="col-sm-6">
            <label>数据库字段类型</label>
            <select ng-model="editDialog.filedType" class="form-control">
                <option value="">==请选择==</option>
                <option value="float">数值</option>
                <option value="varchar">字符</option>
                <option value="date">日期</option>
                <option value="clob">大字段clob</option>
                <option value="blob">大字段blob</option>
                <option value="bool">布尔型</option>
            </select>
        </div>
    </div>
    <div class="form-group pull-in clearfix">
        <div class="col-sm-6">
            <label>外键id</label>
            <input type="text" class="form-control" ng-model="editDialog.foreignId" />
        </div>
        <div class="col-sm-6">
            <label>外键名称</label>
            <input type="text" class="form-control" ng-model="editDialog.foreignName" />
        </div>
    </div>
    <div class="form-group pull-in clearfix">
        <div class="col-sm-6">
            <label>选择方式</label>
            <select ng-model="editDialog.selectType" class="form-control">
                <option value="">==请选择==</option>
                <option value="select">下拉框</option>
                <option value="radio">单选框</option>
                <option value="checkbox">复选框</option>
            </select>
        </div>
        <div class="col-sm-6">
            <label>数据来源</label>
            <select ng-model="editDialog.dataSource" class="form-control">
                <option value="">==请选择==</option>
                <option value="database">数据库</option>
                <option value="enums">枚举</option>
                <option value="diy">自定义</option>
            </select>
        </div>
    </div>
    <div class="form-group pull-in clearfix">
        <div class="col-sm-6">
            <label>映射方式</label>
            <select ng-model="editDialog.mapping" class="form-control">
                <option value="">==请选择==</option>
                <option value="OneToMany">一对多</option>
                <option value="ManyToMany">多对多</option>
                <option value="ManyToOne">多对一</option>
            </select>
        </div>
        <div class="col-sm-6">
            <label>级联表名</label>
            <input type="text" class="form-control" ng-model="editDialog.joinTable" />
        </div>
    </div>
    <div class="form-group pull-in clearfix">
        <div class="col-sm-6">
            <label>级联表原字段名</label>
            <input type="text" class="form-control" ng-model="editDialog.joinSourceField" />
        </div>
        <div class="col-sm-6">
            <label>级联表目标字段名</label>
            <input type="text" class="form-control" ng-model="editDialog.joinTargetField" />
        </div>
    </div>
</div>
<div class="modal-footer">
    <button class="btn btn-default" ng-click="cancel()">取消</button>
    <button class="btn btn-primary" ng-click="ok()">确定</button>
</div>